Skip to content

docs: clarify register validation rules vs native HTML attributes#1209

Merged
bluebill1049 merged 1 commit intoreact-hook-form:masterfrom
dfedoryshchev:docs/clarify-register-validation-not-native
May 2, 2026
Merged

docs: clarify register validation rules vs native HTML attributes#1209
bluebill1049 merged 1 commit intoreact-hook-form:masterfrom
dfedoryshchev:docs/clarify-register-validation-not-native

Conversation

@dfedoryshchev
Copy link
Copy Markdown
Contributor

Closes #1043.

The register Options table doesn't say whether the listed entries (required, maxLength, etc.) are validation rules or native HTML attributes. They're validation rules tied to mode; the native HTML attributes only get forwarded when progressive: true is set on useForm (see src/logic/createFormControl.ts:1111-1119 in the library repo, which is also already linked from useform.mdx:101 and documented at useform/form.mdx:62-78).

Adds a 4-line note admonition above the TabGroup so it applies to both tabs. No row text changes, no prettier reflow.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 1, 2026

@dfedoryshchev is attempting to deploy a commit to the BEEKAI OSS Team on Vercel.

A member of the Team first needs to authorize it.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 1, 2026

Deploy Preview for sage-cassata-31d224 ready!

Name Link
🔨 Latest commit 4869dec
🔍 Latest deploy log https://app.netlify.com/projects/sage-cassata-31d224/deploys/69f51095b0c4b500085544ab
😎 Deploy Preview https://deploy-preview-1209--sage-cassata-31d224.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@bluebill1049 bluebill1049 merged commit 0e12565 into react-hook-form:master May 2, 2026
4 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

issue: maxLength does not limit input field to length

2 participants